package com.fresh.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("user")
public class User implements Serializable {
    @TableId(value="user_id",type = IdType.AUTO)
    private Integer userId;
    private String userName;
    private String userPassword;
    private String userStatus;
    @TableField(exist = false)
    private String email;
    private String name;
    @TableField(exist = false)
    private String idCard;

    @TableField(exist = false)
    private String url;
    @TableField(exist = false)
    private String method;
    @TableField(exist = false)
    private Role role;
}
